package com.example.leetcode.bfs;

import com.example.leetcode.bfs.common.BFSUtils;

import java.util.Arrays;

class SolutionInterview0810 {
    public int[][] floodFill(int[][] image, int sr, int sc, int newColor) {
        return BFSUtils.floodFill(image, sr, sc, newColor);
    }
}

/**
 * 	#面试题 08.10 颜色填充
 */
public class interview0810 {
    public static void main(String[] args) {
        SolutionInterview0810 solutionInterview0810 = new SolutionInterview0810();
        int[][] image = {{1, 1, 1}, {1, 1, 0}, {1, 0, 1}};
        int[][] image1 = {{0, 0, 0}, {0, 1, 1}};
//        System.out.println(Arrays.deepToString(solutionInterview0810.floodFill(image, 1, 1, 2)));
        System.out.println(Arrays.deepToString(solutionInterview0810.floodFill(image1, 1, 1, 1)));
    }
}
